
:root {
    --sidebar-width: 280px;
    --header-height: 60px;
    --transition-speed: 0.3s;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f7fa;
    margin: 0;
    padding: 0;
}

.app-header {
    height: var(--header-height);
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.sidebar {
    position: fixed;
    top: var(--header-height);
    bottom: 0;
    left: 0;
    width: var(--sidebar-width);
    background: #fff;
    border-right: 1px solid #e0e6ed;
    overflow-y: auto;
    transition: transform var(--transition-speed) ease-in-out;
    z-index: 1020;
}

.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    padding: 30px;
    transition: margin-left var(--transition-speed) ease-in-out;
}

.table-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    overflow: hidden;
}

.table-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e6ed;
    background: #f9fafc;
}

.table-name {
    font-weight: 600;
    color: #273444;
    margin: 0;
}

.table-code {
    font-size: 13px;
    color: #8492a6;
}

.table-container {
    overflow-x: auto;
}

.table th, .table td {
    padding: 12px 15px;
    vertical-align: middle;
    white-space: nowrap;
}

.table th {
    background: #f9fafc;
    color: #3c4858;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-top: none;
}

.table-list-item {
    padding: 12px 20px;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.table-list-item:hover {
    background: #f9fafc;
}

.table-list-item.active {
    background: #f0f4ff;
    border-left-color: #3366ff;
    font-weight: 500;
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 20px;
    color: #273444;
    padding: 0 15px;
    display: none;
}

@media (max-width: 992px) {
    .sidebar-toggle {
        display: block;
    }
}

code {
    padding: 2px 4px;
    background: #f0f4ff;
    border-radius: 3px;
    color: #3366ff;
    font-size: 90%;
}
